﻿@section header
{
    <link rel="stylesheet" href="/css/treetable.css" />
}
<blockquote class="layui-elem-quote news_search toolList" id="menus">
</blockquote>

    <div class="layui-row">
        <div class="layui-col-xs2">
            <ul id="tree" class="ztree"
                style="padding: 2px; border: 1px solid #ddd; overflow: auto;">
            </ul>
        </div>
        <div class="layui-col-xs10">
            <table class="layui-table"
                lay-data="{height: 'full-80', page:true, id:'mainList'}"
                lay-filter="list"  lay-size="sm">
                <thead>
                <tr>
                    <th lay-data="{checkbox:true, fixed: true}"></th>
                    <th lay-data="{field:'ID', width:150}">ID</th>
                    <th lay-data="{field:'CustomerCode', width:150}">CustomerCode</th>
                    <th lay-data="{field:'CustomerName', width:150}">CustomerName</th>
                    <th lay-data="{field:'SpellName', width:150}">SpellName</th>
                    <th lay-data="{fixed: 'right', width:160, align:'center', toolbar: '#barList'}"></th>
                </tr>
                </thead>
            </table>
        </div>
    </div>

<script type="text/html" id="barList">
    <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="detail">查看</a>
</script>


<!--添加/编辑窗口-->
<div id="divEdit" style="display: none">
    <form class="layui-form" action=""  id="formEdit">
    <input type="hidden" name="ID" v-model="ID" />
    <div class="layui-form-item">
        <label class="layui-form-label">CustomerCode</label>
        <div class="layui-input-block">
            <input type="text" name="CustomerCode" v-model="CustomerCode" required lay-verify="required"
                placeholder="CustomerCode" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">CustomerName</label>
        <div class="layui-input-block">
            <input type="text" name="CustomerName" v-model="CustomerName" required lay-verify="required"
                placeholder="CustomerName" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">SpellName</label>
        <div class="layui-input-block">
            <input type="text" name="SpellName" v-model="SpellName" required lay-verify="required"
                placeholder="SpellName" autocomplete="off" class="layui-input">
        </div>
    </div>


     <div class="layui-form-item">
            <div class="layui-input-block">
                <button class="layui-btn" lay-submit lay-filter="formSubmit">立即提交</button>
                <button type="reset" class="layui-btn layui-btn-primary">重置</button>
            </div>
        </div>
    </form>
</div>

<script type="text/javascript" src="/layui/layui.js"></script>
<script type="text/javascript" src="/userJs/applications.js"></script>


